import React from 'react';
import './index.less';
import {connect} from "dva";
import Curd from "components/Curd";
import createColumns from "./columns";
import searchColumns from "./searchColumns";


@connect(({slideShow, goods}) => ({slideShow, goods}))
export default class extends Curd {

  static defaultProps = {
    picKeys: ["pic"],
    align: 'center',
    searchType: 'inline',
    searchCols: {span: 8},
    picGroup: "slide",
  }

  getNamespace() {
    return 'slideShow';
  }

  getTableColumns() {
    return createColumns(this);
  }


  // addAndModify(value, record) {
  //
  //   const {pic} = value;
  //   console.log(value);
  //   putFile("1.png", pic[0].originFileObj);
  // }
}
